package cn.git.shiro.service.impl;

import cn.git.shiro.entity.Role;
import cn.git.shiro.service.RoleService;
import org.springframework.stereotype.Service;

/**
 * @description: 角色serviceImpl
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-03-27
 */
@Service
public class RoleServiceImpl implements RoleService {
    /**
     * 根据id获取角色
     *
     * @param id
     * @return
     */
    @Override
    public Role getRoleById(String id) {
        Role role = new Role();
        role.setId(id);
        role.setName("admin");
        role.setDesc("全部权限");
        role.setRealName("管理员");
        role.setPid(id);
        return role;
    }
}
